<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'welcome.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
	   <h2>欢迎光临:${username}</h2></br>
	   
	   <s:debug></s:debug></br>
	   
	   <s:property value="username"/></br>
	   
	   key1的值：<s:property value="key1"/></br>
	        
	        获取session值:<s:property value="#session.username"/></br>
	        
   	        获取request的值:<s:property value="#request.username"/></br>
   	        
   	   <a href="add_action">添加action</a>
   	   <a href="del_action">删除action</a>
  </body>
</html>
  <!-- 
   	Taglib指令告知Servlet容器这个页面将使用Struts2 标签，并且这些标签会被s放在前面。
   	s:property 标签显示Action类“name”属性的值，这个值是使用HelloWorldAction类的 getName() 方法返回的。
   	<%-- <%@ taglib prefix="s" uri="/struts-tags" %> --%>
     <s:property value="username"/>
    -->